package cn.edu.zafu.bigdata.x.zcy_0217;

class EmpInfo{
    String name;
    String designation;
    String department;
    public EmpInfo(String eName,String eDesign,String eDept){
        name=eName;
        designation=eDesign;
        department=eDept;
    }
    void print(){
        System.out.println(name+"is a"+designation+"at"+department+".");
    }
}

public class zcy_4_1 {
    public static void main(String args[]){
        EmpInfo e1=new EmpInfo("Robert Java","Manager","Coffee shop");
        EmpInfo e2=new EmpInfo("Tom Java","Worker","Coffee shop");
        e1.print();
        e2.print();
    }
}
